package top.xierongsheng.code;

/**
 * redis 缓存key 及 有效期 常量
 *
 * @auther 谢荣生
 * @datetime 2020/10/27 16:51
 */
public class CacheVariable {
    /**
     * 缓存key
     *
     * @auther 谢荣生
     * @datetime 2020/10/27 16:54
     */
    public static final String USER = "User:"; //用户
    public static final String USER_ROLE = "UserRole:"; //用户角色
    public static final String ROLE_RESOURCE = "RoleResource:"; //角色资源
    public static final String WX_USER = "WxUser"; //微信用户


    /**
     * 有效期
     *
     * @auther 谢荣生
     * @datetime 2020/12/4 12:04
     */
    public static final long USER_EXPIRE = 64800L;
    public static final long USER_ROLE_EXPIRE = 64800L;
    public static final long ROLE_RESOURCE_EXPIRE = 64800L;
    public static final long WX_USER_EXPIRE = 86400L;

}
